<%@page import="model.User"%>
<%@page import="java.util.List"%>
<%@page import="daoImp.UserDaoImp"%>
<%@page import="dao.UserDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>显示所有用户</title>
</head>
<body>
	<form action="Admin_ShowAllUserServlet" method="post">
		<table align="center" border="1">
			<tr>
				<td>用户ID</td>
				<td>用户名</td>
				<td>用户密码</td>
				<td>操作</td>
			</tr>
			<%-- <%
				UserDao dao = new UserDaoImp();
				List<User> list = dao.list();
				for (User u : list) {
			%> --%>
			<c:forEach var="list" items="${list}">
				<tr>
					<td>${list.uid }</td>
					<td>${list.uname }</td>
					<td>${list.upassword }</td>
					<td><a href="Admin_QueryUserById?uid=${list.uid }" >修改</a>
					<a href="Admin_DeleteUserById?uid=${list.uid }" onclick="return confirm('您确定要删除吗?')">删除</a> 
				</tr>
			</c:forEach>
			<%-- <tr>
				<td><%=u.getUid()%></td>
				<td><%=u.getUname()%></td>
				<td><%=u.getUpassword()%></td>
				<td><a href="QueryUserById">修改</a> <a
						href="DeleteUserById">删除</a></td>
			</tr>
			<%
				}
			%> --%>
		</table>
	</form>
	</br>
	<a href="Admin_header.jsp">返回菜单页面</a>
</body>
</html>